<?php

namespace app\admin\controller;

use think\Db;

class Index extends LoginThere
{
    public function index(){
        $data = array();
        $data['usertotal'] = Db::name('user')->count();
        $data['apptotal'] = Db::name('app')->count();
        $data['kmtotal'] = Db::name('km')->count();
        $data['messagetotal'] = Db::name('notes')->count();
        return $this->fetch()->assign('data',$data);
    }

}